[Unit]
Description=Cerebro
After=network.target

[Service]
Type=folking
User=appadmin
Group=users
Environment=JAVA_HOME={{ java_home }}
WorkingDirectory={{ install_path }}/cerebro
ExecStart={{ install_path }}/cerebro/bin/cerebro -Dconfig.file={{ install_path }}/cerebro/conf/application.conf
PIDFile={{ install_path }}/cerebro/cerebro.pid
LimitNOFILE=65535
Restart=on-failure

[Install]
WantedBy=multi-user.target